/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"D07D0232-913A-4132-95DB-7B10D2D5D344"}
 */
function imprimir(event) 
{
	// llama al formato de OP usado en la impresion
	forms.opago_cabecera_imp.controller.loadRecords(op_cabecera_id)
	forms.opago_cabecera_imp.controller.showPrintPreview();
	/*var $params = {
	pFacturaId: op_cabecera_id,
	pRazonSocial: uservs_to_uservs.razon_social,
	pDireccion: uservs_to_uservs.calle_nro,
	pCodPostal: uservs_to_uservs.cod_postal,
	pProvincia: uservs_to_uservs.uservs_to_provincias.descripcion,
	pCuit: uservs_to_uservs.cuit,
	pCodBrutos: uservs_to_uservs.cod_ing_brutos,
	pIva: uservs_to_uservs.uservs_to_tipo_iva.tipo_iva_desc,
	tipo_doc: 'Orden de Pago'
}
globals.metodoJasper('impresion','proveedores/orden_pago.jasper','Orden_pago_n'+nro_comprobante,'infocom',$params)*/

}

/**
 * @properties={typeid:24,uuid:"3B785D9E-8064-4E4D-B682-6C7679477F49"}
 */
function pdf()
{
	forms.opago_cabecera_imp.controller.loadRecords(op_cabecera_id)
	globals.metodoPdf('opago_cabecera_imp','Orden_pago',false)
}
/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"203E2F7F-E2C8-4E10-9C8E-1A407876002B"}
 */
function cerrar(event) {
	var $win = application.getWindow('det_opago')
	$win.hide()
	$win.destroy()
}
